package nc.ui.arap.selectedpay;
import nc.ui.pub.bill.BillCardPanel;
import nc.vo.arap.exception.ExceptionHandler;
public abstract class BillCardChecker {
  protected BillCardPanel bill=null;
   public BillCardChecker() {
   }
   public BillCardChecker(BillCardPanel bill)
   {
     this.bill=bill;
   }

   public abstract boolean check() throws Exception;
   public  boolean checkBillItems() throws Exception
   {
     try
     {
       if(this.bill.isValid() && this.check())
       return true;
     else
       return false;
     }
     catch(Exception e)
     {
       ExceptionHandler.consume(e);
       throw e;
     }
   }


}
